CompTIA Linux+ Practice Tests by Suehring Steve;
Author:Suehring, Steve; [Suehring, Steve]
Language: eng
Format: epub
Publisher: John Wiley & Sons, Incorporated
Published: 2022-08-02T00:00:00+00:00
Chapter 2: System Operations and Maintenance (Domain 2.0)
B. The userdel command is used for this purpose, and the -r option (lowercase) deletes both the home directory and mail spool files. The -R (uppercase) option informs the userdel command to use a chroot directory.
A. The best option among these choices is to change the group to www-data and change the permissions such that the group can write into the directory. Option B should never be used because it enables world-writing to the directory. The other options will not allow the web server group to write into the directory.
D. The chage command is used for this purpose. The -d option sets the days since the last password change and is measured in days since January 1, 1970. The -W option is the days of warning for changing a password, and the -l option displays a list of the various settings related to the account. There is no -f option.
B. User-based configuration files are located in the order .bash_profile, .bash_login, and .profile. Only the first file found is executed; the others are ignored. The file /etc/profile is a system-wide bash profile.
C. The /etc/skel directory contains files to be copied to the user's home directory. The other directories listed for this question do not exist by default.
C. The --norc option causes bash to execute without reading the /etc/bash.bashrc (Debian derivatives) or /etc/bashrc (Red Hat derivatives) file or the local ~/.bashrc file. The other options listed do not exist as options for bash, which is the default shell on most popular Linux distributions.
A. The .bash_profile file, if it exists in your home directory, will be executed on login. Note that placing the function in /etc/profile would technically work, but then the function would be available to all users, which is not what the question asked for.
A. The DISPLAY variable can be used to remotely send the windows of an X session to another computer when using protocols like SSH. There is no XTERMINAL or XDISP environment variable, and XTERM is typically a terminal window and not an environment variable.
B. The X11Forwarding option must be enabled in order for X connections or windows generated from the X server to be sent over an SSH connection.
C. The /etc/passwd file contains various information about users on a system such as username and real name, along with user ID (UID) and login shell. The file is world-readable. The /etc/shadow file contains encrypted passwords but is not readable by all users. The other two files shown as options do not exist by default.
A. The groupmod command is used for this purpose, and the -n option is used to change the group name. The other commands listed do not exist.
B. The -m option causes the user's home directory to be created. By default, if this option isn't specified and CREATE_HOME has not been set, the home directory won't be created. The -h option displays help text, and the other options shown are not valid.
A. The usermod -L command locks an account by placing an ! in the encrypted password.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Red Hat Certified Specialist in Services Management and Automation EX358 Exam Guide by Eric McLeroy(6176)
The KCNA Book by Nigel Poulton(4249)
Microsoft Security, Compliance, and Identity Fundamentals Exam Ref SC-900 by Dwayne Natwick(3616)
Designing and Implementing Microsoft Azure Networking Solutions by David Okeyode(3524)
Microsoft Security Operations Analyst Exam Ref SC-200 Certification Guide by Trevor Stuart and Joe Anich(3472)
Microsoft Security Operations Analyst Exam Ref SC-200 Certification Guide by Trevor Stuart & Joe Anich(3396)
TCP IP by Todd Lammle(2983)
Microsoft Power BI Data Analyst Certification Guide by Ed Corcoran Orrin Edenfield(2921)
Unity Certified Programmer: Exam Guide by Philip Walker(2571)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2520)
Networking A Beginner's Guide by Bruce Hallberg(2210)
Microsoft Power Platform Solution Architect's Handbook by Hugo Herrera(2037)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1861)
CompTIA A+ Practice Tests Core 1 (220-1101) and Core 2 (220-1102) by Ian Neil and Mark Birch(1794)
MCSA Windows Server 2016 Study Guide: Exam 70-741 by William Panek(1666)
PHP 7 Zend Certification Study Guide by Andrew Beak(1645)
Healthcare Information Security and Privacy (All-In-One) by Sean Murphy(1551)
CompTIA A+ Certification Guide (220-901 and 220-902) by Matthew Bennett(1526)
RHCSA & RHCE Red Hat Enterprise Linux 7: Training and Exam Preparation Guide (EX200 and EX300), Third Edition by Asghar Ghori(1488)
